Action Work Orders Exceptions
Some example exception messages and associated error codes for ActionWorkOrders are as follows:
| Exception Message | Error Code | Description |
| Missing update_status attribute | 20070 | Exception if the client update_status attribute is missing. |
| Missing work_orders element | 20075 | Exception if the work_orders element is missing. |
| Missing wo element - At least one wo element must exist for work_orders | 20080 | Exception if at least one wo element does not exist. |
| Missing wo action attribute | 20085 | Exception if the wo action attribute is missing. |
| Invalid wo action: | 20090 | Exception if the wo action action attribute is invalid. |
| Missing wo won attribute | 20095 | Exception if the wo won attribute is missing. |
| Missing wo tech_number attribute | 20100 | Exception if the wo tech_number attribute is missing. |
| Missing reason attribute for action pause_work. | 20105 | Exception if the reason attribute is missing. |
| Reason does not exist: | 20110 | Exception if the reason does not exist in the database. |
| Missing comments attribute for action pause_work. | 20115 | Exception if the comments attribute is missing for pause_work. |
| Missing comments attribute for action complete_work. | 20120 | Exception if the comments attribute is missing for complete_work. |
| Work Order has different actions: | 20125 | Exception if a work order has more than one action type. |
| Work Order has multiple complete_work actions: | 20130 | Exception if a work order has more than one complete_work action. |
| Technician number is not unique: | 20135 | Exception if duplicate technicians exist in the request. |
| Work Order does not exist: | 20140 | Exception if the work order does not exist in the database. |
| User for tech_number does not exist: | 20145 | Exception if the user referenced by the tech_number does not exist in the database. |
| Work Order is already started for tech_number: | 20150 | Exception if a technician tries to start_work more than once on a work order. |
| Technician is not assigned to the work order: | 20155 | Exception if a technician tries to pause_work or complete_work on a work order that they are not working on. |
| Invalid work order status for start_work: | 20160 | Exception if the work order status is invalid for start_work. |
| Invalid work order status for pause_work: | 20165 | Exception if the work order status is invalid for pause_work. |
| Invalid work order status for complete_work: | 20170 | Exception if the work order status is invalid for complete_work. |